<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/3nod_web/layui/css/layui.css">
    <script src="/3nod_web/js/echarts.common.min.js"></script>
    <title>Title</title>
</head>
<body>

<div style="height:400px;width: 600px;" id="main"></div>
<script src="/3nod_web/layui/layui.all.js"></script>
<script>
    var myChart = echarts.init(document.getElementById('main'));
    var $=jquery=layui.jquery;
    $.get("/3nod_web/report/unQualifiedQualityList",function (data) {
        var unQualifiedQualityList =data.data;
        var deliveryNumber= [];
        var unPutawayQty= [];

        for (var i = 0 ;i<unQualifiedQualityList.length;i++){
            deliveryNumber[i] = unQualifiedQualityList[i].deliveryNumber;
            unPutawayQty[i] = unQualifiedQualityList[i].unPutawayQty;
        }

        var option = {
            xAxis: {
                data: deliveryNumber,
                name:'送货单号'
            },
            yAxis: {
                type: 'value'
            },
            series: [{
                data: unPutawayQty,
                type: 'line'
            }]
        };
        myChart.setOption(option);
    });
</script>
</body>
</html>